<?php 
/**
 * 阅读文章页面 
 */
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div class="article-left col-xs-12 col-md-9 ">
        <div class="breadcrumb">
            <i class="fa fa-home"></i><a href="/" title="返回网站首页">首页</a> <b>></b>
            <?php 
             //父分类和子分类
             $ery = mysql_query("SELECT * FROM ".DB_PREFIX."sort WHERE sid ='$sortid'"); $rest = mysql_fetch_array($ery); if($rest['pid'] == "0"){
           echo '<a href="'.Url::sort($rest['sid']).'">'.$rest['sortname'].'</a>'; 
          }else{
          $ery1 = mysql_query("SELECT * FROM ".DB_PREFIX."sort WHERE sid ='".$rest['pid']."'"); $rest1 = mysql_fetch_array($ery1); echo '<a href="'.Url::sort($rest1['sid']).'">'.$rest1['sortname'].'</a>'; echo ' <b>></b> <a href="'.Url::sort($rest['sid']).'">'.$rest['sortname'].'</a>';}
            ?>
            <span>><?php echo $log_title; ?></span>
        </div>
        <h3 class="article_title"><?php echo $log_title; ?></h3>
        <div class="article_ini ">
          <a class="hidden-xs">时间：</a><span class="ar_time"><?php  echo gmdate('Y-n-j H:m:s', $date);?></span>
        </div>
        <hr class="hx">
        <div class="article_wenz">
             <?php if(lanye_endtime_getopen($logid)=='1'):?>
               <?php if(lanye_endtime_gettime($logid)==''):?>
               <div class="lanye_endtime"><span class="end_time_text">本活动结束时间未知。</span></div>
               <?php else:?>
               <script>setInterval(showToEndTime("end_time","<?php echo date('Y-m-d H:i:s',lanye_endtime_gettime($logid));?>"),1000);</script>
               <div class="lanye_endtime"><span class="end_time_text">本活动<span id="end_time"></span>结束！</span></div>
               <?php endif;?>
             <?php endif;?>
              <!-- 日志全文内容 -->
            <div id="zoom"><?php echo $log_content; ?></div>
             <!-- 上一篇及下一篇 -->
            <div id="shangxiapian"><?php neighbor_log($neighborLog); ?></div> 
        </div>
       <script type="text/javascript">function doZoom(size){document.getElementById('zoom').style.fontSize=size+'px'}
        $(function(){
          $("#zoom").find("img").each(function(){
            $(this).css({
              "max-width":"98%",
              "height":"auto",
              "padding":"0",
              "margin":"0 auto"
            }).attr("alt",$("h3.article_title").text())
          })
        })
      </script>
      <div class="article-pinglun">
           <div id="SOHUCS" sid="<?php echo $logid; ?>" ></div> 
          <script type="text/javascript"> 
            (function(){ 
              var appid = 'cysiP5Pch'; 
              var conf = 'prod_26b254e500f7bacab722fcfd05b8703a'; 
              var width = window.innerWidth || document.documentElement.clientWidth; 
              if (width < 960) { 
              window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })(); 
          </script>
      </div>
</div>
<div class="aside col-xs-3">
  <?php
  include View::getView('side');
  ?>
</div>
<?php
 include View::getView('footer');
?>
